*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}
.slider{
    width: 220px;
    /* 这是视口宽高，直接参考浏览器窗口 */
    height: 100vh;
    background-color: #fff;
    position: fixed;
    z-index: 1001;
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s;
}
.slider .top{
    width: 100%;
    height: 60px;
    background: #438AFE;
}

.slider .top h2{
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-weight: 400;
    font-size: 26px;
    margin-top: 0;
}
.slider img{
    width: 220px;
}
.menu li{
    width: 200px;
    height: 50px;
    padding: 10px;
    padding-left: 20px;
    position: relative;
    cursor: pointer;
}
.menu img{
    width: 30px;
    height: 30px;
}  
.menu li span{
    font-size: 20px;
    margin-left: 20px;
    position: absolute;
    top: 11px;
} 
.header {
    width: 100%;
    height: 70px;
    background-color: #fff;
    padding-left: 250px;
    padding-top: 20px;
    position: fixed;
    z-index: 1000;
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.5);
}
.header .pull-left{
    width: 30px;
    height: 30px; 
    float: left;
}
.header .pull-left img{
   width: 30px;
   height: 30px;
   cursor: pointer;
}
.header .pull-center{
    width: 268px;
    height: 30px; 
    float: right;
    margin-right: 80px;
    background-color: rgb(238,241,245);
    border-radius: 30px;
    padding-left: 10px;   
}
.header .pull-center input{
    width: 240px;
    outline: none;
    border: 0;
    background-color: rgb(238,241,245);
    line-height: 30px;
}
.header .pull-right{
    width: 100px;
    height: 30px;
    float: right;
    text-align: center;
}
.header .pull-right img{
    width: 30px;
    height: 30px;
    cursor: pointer;

 }
 .header .pull-right .closeimg{
    width: 30px;
    height: 25px;
    vertical-align: bottom;
 }
/* 响应式操作，收起侧边栏 */
 @media screen and (max-width:1024px){
    .slider{
        transform: translateX(-220px);
    }
    
    .header{
        padding-left: 15px;
    }
}
